package com.ruoyi.qiushi.domain.mall;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品图片视频对象 product_spu_file
 *
 * @author ruoyi
 * @date 2023-12-27
 */
public class ProductSpuFile extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * product_spu.id
     */
    @Excel(name = "product_spu.id")
    private Long spuId;

    /**
     * 链接
     */
    @Excel(name = "链接")
    private String url;

    /**
     * 视频链接
     */
    @Excel(name = "视频链接")
    private String videoUrl;

    /**
     * 排序 越小越排在前面
     */
    @Excel(name = "排序 越小越排在前面")
    private Long sort;

    /**
     * 类型  1:图片 2:视频
     */
    @Excel(name = "类型  1:图片 2:视频")
    private String type;

    /**
     * 0正常 1删除
     */
    private String delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setSpuId(Long spuId) {
        this.spuId = spuId;
    }

    public Long getSpuId() {
        return spuId;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUrl() {
        return url;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public Long getSort() {
        return sort;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("spuId", getSpuId())
                .append("url", getUrl())
                .append("videoUrl", getVideoUrl())
                .append("sort", getSort())
                .append("type", getType())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
